/*
 * @Author: 岸舟
 * @Date: 2020-09-22 16:06:53
 * @LastEditors: 岸舟
 * @LastEditTime: 2020-09-23 17:22:35
 * @Description: 
 */
import axios from "../../axios"

const insureSortApi ={
    getSortsApi:function(){
        return axios({
            url:"/insureSort/getSorts",
            method:"get"
        })
    },
    modSortName(_id,sortName){
        return axios({
            url:"/insureSort/modSort",
            method:"post",
            data:{
                _id,
                sortName
            }
        })
    },
    delSortOne(sortName){
        return axios({
            url:"/insureSort/delSort",
            method:"post",
            data:{
                sortName
            }
        })
    },
    addSortOne(newSort){
        return axios({
            url:"/insureSort/addSort",
            method:"post",
            data:{
                sortName:newSort
            }
        })
    }
}

export default insureSortApi